<?php
class AdminUsersController extends AdminIndexController 
{
    public function prepare()
    {
        $page = Env::request('page', 1);
        
        $UsersModel = new UsersModel();
        $list = $UsersModel->getList($page, 30);
        
        $Pager = new Pager($UsersModel->getTotalCount(), $page, 30);

        $this->view->assign('pager', $Pager);
        $this->view->assign('list', $list);
    }
}